﻿using DapperExtensions;
using System;
namespace FineAdmin.Model
{
    [Table("Posts")]
    /// <summary>
    /// Posts 
    /// </summary>
    public class PostsModel : Entity
    {


        /// <summary>
        /// 无 
        /// </summary>
        public string Title { get; set; }

        /// <summary>
        /// 无 
        /// </summary>
        public string PostContent { get; set; }

        /// <summary>
        /// 无 
        /// </summary>
        public string Link_To { get; set; }

        /// <summary>
        /// 无 
        /// </summary>
        public int? Clicks { get; set; }

        /// <summary>
        /// 无 
        /// </summary>
        public DateTime? Indate { get; set; }

        /// <summary>
        /// 无 
        /// </summary>
        public int? Post_Type { get; set; }

        /// <summary>
        /// 无 
        /// </summary>
        public DateTime? Stime { get; set; }


        /// <summary>
        /// 1正常 2草稿 3隐藏
        /// </summary>
        public int? State { get; set; }
        /// <summary>
        /// 概要
        /// </summary>
        public string Synopsis { get; set; }

        /// <summary>
        /// 作者
        /// </summary>
        public string Author { get; set; }
        /// <summary>
        /// 赞
        /// </summary>
        public int? Likes { get; set; }
        /// <summary>
        /// 踩
        /// </summary>
        public int? Trample { get; set; }

        [Computed]
        public string PostTypeName { get; set; }
        [Computed]
        public string ItemName { get; set; }

        public string Label { get; set; }

        public string Business { get; set; }
    }
}